package org.sbear.service;

/**
 * @author xxyWi
 * @company none
 * @create 2020-09-14 12:04
 */
public interface CodeService {

    /**
     * 创建
     *
     * @param email 电子邮件
     * @return boolean
     */
    public boolean create(String email);

    /**
     * 验证
     *
     * @param email 电子邮件
     * @param code  代码
     * @return {@link Integer}
     */
    public Integer validate(String email,String code);
}
